package com.pshedu.extend;

public class pc extends computer{

        private String brand;

        public pc(String cpu, int memory, int disk, String brand) {
            super(cpu, memory, disk);
            this.brand = brand;
        }

        public String getBrand() {
            return brand;
        }

        public void setBrand(String brand) {
            this.brand = brand;
        }
        public void printinfo(){
            System.out.println("PC信息如下:");
            System.out.println(ret() + " " + "brand:" + brand);
        }
}
